﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Abstract
{
    class Sedan : AbstractCar
    {
        public enum SedanNames { Ford, Chevrolet };
        public enum SedanFeatures { Radio, MP3decoder };
        public enum SedanEngines { Premium, RegularGas };
        public enum SedanCategories { Compact, Midsize };

        private SedanNames mName;
        private SedanFeatures mFeature;
        private SedanEngines mEngine;
        private SedanCategories mCategory;


        public SedanFeatures Feature
        {
            get { return mFeature; }
            set { mFeature = value; }
        }
        public SedanEngines Engine
        {
            get { return mEngine; }
            set { mEngine = value; }
        }
        public SedanCategories Category
        {
            get { return mCategory; }
            set { mCategory = value; }
        }


        public SedanNames Name
        {
            get { return mName; }
            set { mName = value; }
        }
        public override Cars Type
        {
            get { return mType; }
            set { mType = value; }
        }

        public override Colors Color
        {
            get { return mColor; }
            set { mColor = value; }
        }
        public override Transmissions Transmission
        {
            get { return mTransmission; }
            set { mTransmission = value; }
        }


        public Sedan(Cars type, Colors color, Transmissions transmission, SedanFeatures feature, SedanEngines engine, SedanCategories category)
        {
            this.Type = type;
            this.Color = color;
            this.Transmission = transmission;
            this.Feature = feature;
            this.Engine = engine;
            this.Category = category;
        }


        public override void aboutCar()
        {
            Console.WriteLine("Name\t:\t" + Name);
            Console.WriteLine("Type\t:\t" + Type);
            Console.WriteLine("Color\t:\t" + Color);
            Console.WriteLine("Transmission\t:\t" + Transmission);
            Console.WriteLine("Feature\t:\t" + Feature);
            Console.WriteLine("Engine\t:\t" + Engine);
            Console.WriteLine("Category\t:\t" + Category);
        } 
    }
}
